import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { UpdateHeroComponent } from './update-hero.component';
import { HeroAuthGuard } from '@services/guards/hero-auth.guard';

const routes: Routes = [
  {
    path: '',
    component: UpdateHeroComponent,
    canActivate: [HeroAuthGuard]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class UpdateHeroRoutingModule { }
